<?php 

$max=100;

 $all = R::find('shop_articles'," portalId = ?" , array($portalId),' ORDER BY countView asc LIMIT $max');

 //16--9 /8
 $pas=$portlet_mostviewed_Step;
 $count=count($all);
 foreach ($all as $article)
 {
 	$index=ceil($article->countView/$pas);
 	
 	if ($index>6) $index=7;
 	?>
 	
 	<a class="cloud cloud<?=$index ?>" href="/article/articleId-<?=$article->id?>.html"><?=$article->lib_FR?></a>&nbsp;&nbsp;  
 	
 	
 	<?php 
 	//echo $article->lib_FR;
 }
?>